﻿<%%@ Page Language="C#" AutoEventWireup="true" CodeFile="findstuden.aspx.cs" Inherits="student_findstuden" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
<style type="texts">
        .auto-style1 {
            width: 293px;
            height: 70px;
        }
        .auto-style2 {
            width: 300px;
            height: 70px;
        }
        .auto-style3 {
            width: 200px;
            height: 70px;
        }
    </style>
    <style type="text/css">
        .auto-style1 {
            width: 132px;
        }
        .auto-style3 {
            width: 152px;
        }
        .auto-style4 {
            width: 215px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        <p style ="color:#0094ff;font-size:20px;text-align:center"></p>
    <table border="1" style ="margin:auto;font-size:22px;width:800px;">
       <tr style ="text-align:center">
           <td style ="color:#ffd800;font-weight :bold;" class="auto-style3">选择查询字段</td>
            <td class="auto-style1">
                <asp:DropDownList ID="DropDownList1" runat="server" width="200px" Font-Size="25px">
                <asp:ListItem>学号</asp:ListItem>
                <asp:ListItem>姓名</asp:ListItem>
                <asp:ListItem>英语成绩</asp:ListItem>
                <asp:ListItem>政治成绩</asp:ListItem>
                </asp:DropDownList>
                </td>
            <td style="width :300px">
                <asp:TextBox ID="TextBox1" runat="server" Font-Size="20px" Width="250px" MaxLength ="10"></asp:TextBox></td>
            </tr>
        <tr style ="text-align : center;height :50px">
            <td colspan ="10">
                <asp:Button runat="server" ID ="ButtonOK" Text="确定" Font-Size="20px" OnClick="ButtonOK_Click"  />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button runat="server" ID ="ButtonReset" Text="重置" Font-Size="20px" OnClick="ButtonReset_Click"  />
          <asp:GridView runat="server" ID="GridView1"  Width="800px" AllowPaging ="true" PageSize ="8" AutoGenerateColumns="false" OnRowEditing ="GridView1_RowEditing"
             OnRowDeleting ="GridView1_RowDeleting" OnPageIndexChanging ="GridView1_PageIndexChanging" style="text-align: center" >
           <Columns >
                        <asp:CommandField ShowEditButton ="true" ItemStyle-Width ="50px" />
                        <asp:CommandField ShowDeleteButton ="true" ItemStyle-Width ="50px" />
                        <asp:BoundField  DataField="ID" HeaderText ="ID号" ItemStyle-Width ="50px" />
                        <asp:BoundField  DataField="sNo" HeaderText ="学号" ItemStyle-Width ="100px"/>
                        <asp:BoundField  DataField="sName" HeaderText ="姓名" ItemStyle-Width ="100px" />
                        <asp:BoundField  DataField="sSex" HeaderText ="性别" ItemStyle-Width ="50px" />
                        <asp:BoundField  DataField="sNation" HeaderText ="民族" ItemStyle-Width ="80px" />
                        <asp:BoundField  DataField="sCollege" HeaderText ="学院"  ItemStyle-Width ="160px"/>
                        <asp:BoundField  DataField="sClass" HeaderText ="班级"  ItemStyle-Width ="160px"/>
                    </Columns>
                    <HeaderStyle  BackColor="#ff0000" Height ="50px" Font-Size ="20px"/>
                </asp:GridView>
            </td>
         </tr>
        </table>
        <br />
                <asp:Label  runat="server" ID ="Label1" ForeColor="#ffccff" Font-Size="20px" Font-Bold="true"></asp:Label>
    </div>
    </form>
</body>
</html>